package cn.cqone.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class SetMeal {
    private Long id;
    //套餐名称
    private String setMealName;
    //套餐价格
    private Double setMealPrice;
    //过期日期
    private Date expireDate;
    //状态
    private Integer status;
    //多对多之租户
    private List<Tenant> tenant;
    //临时数据
    private Tenant tenant1;

    @Override
    public String toString() {
        return "SetMeal{" +
                "id=" + id +
                ", setMealName='" + setMealName + '\'' +
                ", setMealPrice=" + setMealPrice +
                ", expireDate=" + expireDate +
                ", status=" + status +
                ", tenant=" + tenant +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSetMealName() {
        return setMealName;
    }

    public void setSetMealName(String setMealName) {
        this.setMealName = setMealName;
    }

    public Double getSetMealPrice() {
        return setMealPrice;
    }

    public void setSetMealPrice(Double setMealPrice) {
        this.setMealPrice = setMealPrice;
    }
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getExpireDate() {
        return expireDate;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<Tenant> getTenant() {
        return tenant;
    }

    public void setTenant(List<Tenant> tenant) {
        this.tenant = tenant;
    }

    public Tenant getTenant1() {
        return tenant1;
    }

    public void setTenant1(Tenant tenant1) {
        this.tenant1 = tenant1;
    }
}
